package com.qidian.blog.factory;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * @Author 郭浩
 * @Date 2022/10/11 16:11
 */
public class BlogDruidDatasourceFactory extends PooledDataSourceFactory {
    public BlogDruidDatasourceFactory(){
        // 在构造方法中将dataSource创建为druid的dataSource。
        this.dataSource = new DruidDataSource();
    }
}
